package com.example.zlw.dem25;

/**
 * @program: Zlw
 * @description:
 * @author: 诸葛龙辰
 * @create: 2022-11-09 22:37
 **/
public class Xinwen implements News{
    public String name;
    public Xinwen(String name) {
        this.name = name;
    }

    @Override
    public void getMsg(String msg) {
        System.out.println(name+"获取的新闻"+msg);
    }

}
